fix bug generating new app