fixed bug where the alert tab index became wrong if you removed a session

Ignore-this: 1114a18aa238039c8ead4ad9bd671ab9

darcs-hash:20130429032508-c21fe-4047ebf7fc27a8a15357257711b21831e724dd78