fixed invalid terrotiry