onmouse bugfix (hopefully)