Fixed issue with plot not refreshing.