fix doc events