fix text file loader for mode assign