fixed events loading problem