Fixing error with destroy value assignment