fix return of read