Fix typo that caused mouse-move segfault

Fixes #600