Fix use of unitialized variable on mouse move