Correct type encoding in sample.