fix debug problem