FIX fix incorrect teblet check in code