Fixed bug in search indexes