Try to initialize the variables before they are used.