Fixed bug #66176 (Invalid constant substitution)