fix debug logs