Fix bug with setting tail/head of library file structures.
Fix bug with setting tail/head of library file structures.

rtdavis22/GMML,tectronics/gmml,tectronics/gmml,rtdavis22/GMML,rtdavis22/GMML,tectronics/gmml,tectronics/gmml