Correct a typo in Spawn Object rewriting