fixed issue with tasks