fixed a bug in 'clone_obj()' in utils.coffee