fix bugs in FireFox Ubuntu and IE7