Fixing terminate.