fix problems with tasks