Global Variable Being Updated Mysteriously