Fix event masks.