fix dice callback function scope error caused by commit dea6aea9