Fix Webkit compatibility