Fix variable name mismatch.
Remove debug logging (whoops).