bugfix on search api