fix ie and firefox bugs