Fix terminal sizes.