bug fix for navigation