fix CreateApp bug