fixes two cases of menu's not closing when they should: