Changed error message of indexing