fix terminal position