fix a minor bug of mouse event