Bug fix: freeze UI after last tab close