fix empty data on specified range for histogram
fixes #15