Fix empty search handling