Fix getitem

I discovered that this small fix probably fixes #8, without the need for any compatibility options.

Please merge #9 first. This branch is based on the testing branch.