bugs fixed

Signed-off-by: ralphya0 <ralphya0@foxmail.com>