search: uninitialized variable fix