fixed xunch bug. when load before activerecord connect database.