After amending the joint agreement, who received the smaller portion of Lithuania?