fix customer unique constraints bug #tioticket