fixing bug with nav