fix CreateApplication