Fixed bug #638
Fixed bug #638: fixed read() regression