fixed bug with mouse actions