Fix route issue on record duplicate