fix bug of captcha code