Fix Resolving valuetype