fix assertion fails