Fixed uninitialized variable issue.