fix bug of html generate, command displayed only but not executed