fix value type resolving