fixed searchactivity bug by implementing a workaround