Hi Chao,
Thank you for reporting the issue and fixing it. The patch looks good tome.
Regards,Surya Poondla