fixed display problem with events