Fixed error when trying to delete invitation