Make sure that when altering an index we drop and add the new one as two separate queries.