Change type to valueType fixes #6