fixed the CompareValidator