Fixed constant values not being cloned correctly.