fix debug assert