[BUGFIX] Fixes reading from referenced input file