app generation script fix