Fixed a really troublesome spot

Fixed a syntax error, an undefined variable, and an incorrect sayer.