Added rescue for non-unique record