bugfix for Mongo indexes