fixed bugs on value-lookup conversions