fix several css issues on safari