make a flow chart on paper of how you want menu to work use it as a visual reference. then check your codes priority in steps for menu system and reorder the code and add cleanup for some menu's that refresh. plus check all valuable's to menu system. I had that problem with ATOAMATLK menu battle system for keeping tab on a characters in party, what thought was mem leakage was just human error!