Fix navigation bar animation