fix bug of ayns loading thread