Add missing var. Closes #523.