fixed some safari rendering bugs