fixed bug with updating files