Fixed problem with sector greater than 180