fix initialize handle failed without task_id