bugfix on getCoordinates:range: