fixed bug with files