Fixed bug in check an tension detector