Fix Typo in coerce-value

Use the passed in value, not the "val" function.