fixed mongo indexing issue