Fixed undefined index on event view page