fixed parsing bug where first function couldn't be linked