Fix menu open and close lines