Doc patch

Fixing missing semicolon and misnamed variable.