call function (Fixes #418)