Fixed invalid data type specification in generate_sample