Workaround a Safari bug.