fix Issue 11291 - Disallow mutation of a const variable