fix debug issue