Fixes error in navigation menu