Fix check for valid TC pin