(Issue 3796) fix variable reference in chrome workaround code