Fixed bug of deep task sequence with Promises as return value (in general way)