rect fix

fixed the broken rect indices
Merge pull request #116 from JanBTG/master

Rect bugfix