fix bug: one cast message will be crash