Fix for filling out_buffer from in_buffer