fix conversion for sample data