Fixing unitialized variable bug.