Fixed bug where focus gets stuck in bogus tag