Fixed parameter-less function calls used as parameters for other function calls throwing exceptions