fixed bug with connected task next