Fix task validations