[FIX] boring bug that throws an exception in some cases when we use the middle-click