fixed invitation migration