Minor variable corrections