Fixed the compile errors.