fixed a bug with mouse history