Fix navigationbar variables