fixed task controller bug