Fixed problem with non-initiated local variable.