Call setReplaceObject() when first run