Fix termination.