Fix typo that caused mouse-move segfault

Fixes #600
Merge pull request #603 from dorkster/mouse_move

Fix typo that caused mouse-move segfault