Fix problems with tasks validations