Fixed random bug with right clicking tabs and dragging crashing the program