fixing bug in export contacts