incorrect use of 'const' fixed