Fix bug with autoIndex in SearchableBehavior