Bugfixes, better tab name handling

Should be good now. Like, really.