A couple bugs fixed

* incorrect read operation in Transport for large data
* slow work under Ubuntu