fix load event emission