fixing a minor bug about display of empty criteria