fix leaving