fix invitation error
fix headers