fix captcha handling