fix debug boolean bug