fix Terminal issues