Better safari compatibility