Bug fix in ValueType