Fix #16

Fix the middle mouse bug opening two tabs