Correct bit iteration