[BUG #8772] fixed forEach callback context