fixed a bad copy of a defer var