fix logic in mmenu init function