Drop indexes correctly

Closes #276