Fix batch model loading to prevent triggering multiple events