modification of utils.calm function (bug 1318513)