some fixes for IE7&8&FF