Fix issue with asVersion not setting properly

When looping through multiple `$directProps` values, `$result` will not be set correctly after the first pass.