try to fix a AppCrash from appctrl.c