fixed some problems.

Signed-off-by: Joungchoul Kim <joungchoul.kim@windriver.com>