Fixed a bug: now calling initTask when the task is dropped.