fix for case of zero results