search stat bugfix