Changed the 'if' statement to check value of 'no_nav'.