fix error while plotting (xlim has same upper and lower bound)