Fix nav inside anim loop