Change the object type if it turns out to be wrong during a scan