Better fix for script functions with zero arguments.