Corrupt file fixes