fixed mouse unhooking when option is disabled