Fix menu show/hide behavior.