fixed app initialization error.