Correct compile errors