bug fixed in createnewapp.js