fix assertion (EA-20597)