Bug fix: hidden boolean variables in debug message