Fixed bug related to insert() uri and id of the record