fix Tea encryption code