Set vars so they aren't undefined.

Fixes #613