Fixed menuedit bugs (#125 issue reported by Mateusz Warzyński)