Fixed mouse tracking bug. Fixes #86.