Fixed to_bit use