fixing bug in navigation.rb