fixed tab selecting bug in firefox