fix termination things