bugfix for event cache problem