Fix a nasty mouse hook error, thanks to dann0mite.