fix createTasks from commandline