What did John force William to sign?