fix strange issue with plotting small range of data