Bug prevention