Fixed bug where if the navigation is clicked too fast, the animations don't work properly.