fixed debug assert