fix getsectoraround function