fix for WebKit-based browsers