const-correctness fix