Fix nl bug in file loading