fix some more empty min/max cases