Fix small data conversion bug