fix printoutx events bug