fix weird css bug in Safari