fixed recursive QTask creation (caused a segfault)