fix errors in file