fix assertion failed