Fixing bug in StaticFunction.