Fixed a bunch of null ptr errors with fileNodes