fix terminal opening