fixed a missing const ref