tcutils: error, warning fix