Fixed an issue where a variable was not being initialized.