Fixed issue #2267 about functions without params