Fix problem with rendering event index