Fixed Online_flag variable name