Fixed files broken by power failure