Fix invitation creation bug.