removed bug, causing rxecuting tasks more than once.