Fixed a bug in the hangup.