fix regression with empty data