Fix error with variable not being initialized