fixed bug in tip processing