fix events lib