Fix app generation (again)