Fixed bug in re-enabling listening for tasks.