Fixed navigation breaking when aligning left or right