fixes debug assert