Fixing compiler errors in the code.