Fix menu closing firing before menu open