Fixed a bug in ads and pds validations