clean some codes

Signed-off-by: Ady Liu <imxylz@gmail.com>