fix bug where you had to sign with 3rd key first