fixed problem with ValueTypes