fix a bug may throw exception when draw danmuku