Fix menu closing before menu open