invitation model fix