Fixed control flow graph bug where end of function links to module code.