Fix a compilation failure caused by a non-const reference.