fixed issues with damaged files