IE7 compatiblity fixes