Fix compile errors caused by previous code changes.
Removed some duplicate lines