fix terminal