Temporary error fix for mouse handler