Fix offset on read functions.