Fixed range issue for plotting