bugfixes to client for searches