A couple of fixes in GetGeometry

- Make ext variable local.
- Fix type in borderWidth attribute.