CFY-1308 fix function invocation