A couple of fixes in GetGeometry

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