Attempt to fix "Object #<Object> has no method setToObject" error.