Fixed a bug in Captcha implementation