修复两处小bug

Signed-off-by: Tongle Xu <xutongle@gmail.com>