Fix functions referencing themselves not throwing a recursion error.