fixed crash when opening sub menu