fix a const reference error.