File update bug fix