fix debug messages