Fixed bug of deep task sequence with Promises as return value