Fixed const correctness warnings.