tried to fix a debug assert