Fixed remote terminals being broken since a36a0b525ccaea10f27a6d3ae38f037d72c452c1.
Fixed a race condition in tablet caching.