fix bug caused by global turnpoint lookup