Fixed a silly bug, forgot to remove task from task queue on each
iteration
Revert "Fixed a silly bug, forgot to remove task from task queue on each iteration"

This reverts commit 0640e845e4e4725740b02cddb58b375be2445149.
Fixed a bug, forgetting to clear task queue