fix None error in getting event details