Fix for older versions of webkit