fixed regression in menu open/close behaviour