Fixed merging bits in bytes into combined bytes