Fix bug on get edge when getInnerPoints=false