fix webkit compatibility