Fixed PHP-949: ensureIndex() creates wrong names