Drop indexes correctly, closes #276