fix debug parts