fix debug builds