Removing index from wrong place