fixed search handler error