Fixed a bug with resync where the task name was not being recognized.