Fix bugs for event page func