Fixed memory leak for duplicated objects. implemented "scn", "SCN"

Keep the last of the duplicated object, and remove existing one.
Implemented "scn", "SCN"