Fixed const correctness.