some syntax errors

BTW, is the signedAs.isPresent() method still applicable for current versions?