Fix non-initialized variables to be undefined.