Fixed a possible stack issue in file nodes