Fix malformed file