fixes nav button bug