Fixed wrong nav function

Wrong nav Function changed to proper modified nav function.