bug in INVITE and QUERY