fix bug for contacts.pl