fix failed assertion