Fixed a bug where template was including wrong template
Made invites accepted once they have been