Fixed an overwrite bug.