bug invite fixed Closes #43