fixing more of safari compatibility issues