Fix sdp handling