Fixed navigation bar from getting stuck in peek mode