fixes fault in migration add_index calls