change maxEvent, compatibility in lxplus6