Fixed NPE with inviting