Fix undefined variables.