fixed script error when opening self menu, before a global variable was defined