Fix some errors.

Fix the unexpect data error.