fix debug warnings