Fix broken global state in funcall.