fix bug when appManager.run not work as handler winwow.onload