Fixes issue where removing an alias from an index was removing the first match for alias, not the correct one

closes #24