If an object is passed, clear out any random cruft.