Removed wrong debug assert, fix debug builds