fix toggle menu bug