Use constructors to properly inititalize nullary functions. Fix MB-12940.