Fix transport buffer size handling