Workaround for SecurityError problem