cleanup
fix access to position

Position sometimes contains a tuple and sometimes a NSPoint. Both can
be accessed by index.