Rearranging and fixing a bit