fix a syntax error and cut and paste error