Fixing bug in the navigation plugin.