Fixed looping issue on event index page