Fix terminal position