fix webkit incompatibility