fix assertion