fixed bug where negative world indices were off by one