fix webkit-based browser issues