Fixes problem with accessing data source in constructor of invitation