Minor bugs in search module