small fix for TEC init