fix create application $app declaration