Fix typo in handleAcceptInvitation