fixing bug with nav not expanding in firefox