fixed compile errors.