Correct errors in manually created files