fix some little bug.

Signed-off-by: Daogang Tang <daogangtang@gmail.com>