[Debug] fix ENT_SUBSTITUTE usage