fixed a bug when using the previous change with mouse data.