Bugfix. Error-handling for duplicated item to insert.