Fixed BadSignature error being caught