fixed errors on mousemovement