fix bug on search indexing