fixed app generation bug