Fixed /end where it wouldn't reset the variables