[TIDOC-1487] Fix script callbacks