fix assertion of data