Unnecessary clone of params, fix bug in objects comparison.

Remove unnecessary code.