Fix: compile error at generateApp