Fixed bug for displaying events