try to fix handling empty results