Fixed callout resources modifying $val blowing away resources.