Safari bug workaround