fix code to catch my uniq exception