fixed bug in file argument