Fix index

fixes #8