Fixed a but in hangupCall.