fix tens bug