Fixed issue with the avoid_captcha function