fix the bug if the plot region too large