fix some code

Signed-off-by: Eric <erich@xaos-ia.com>