Fix a bug that used the uninitialized variable.