fix issue with tampered files on updates