Fixed created task bug