fix debug condition