fix debug on receive