Why is a "const" being mutated?