Added method _cloneObject

Added method _cloneObject makes a copy of the settings, that data is not overwritten.
change the loop condition
Merge branch 'pasapsi-patch-1'