fixed app resource bug