fixing the events loading