fix for functions that contain zero params

Change-Id: I745c70a4640069c0342d8c452facfb44b5cfa3d3