Fixes corrupt file