fix bugs of teeport.py