const correctness fix