fix uninitialized variable (typo), closes #1421