Fix: pre.generate.app fired twice