minor bug fix to CustomNavigationView