Fix offset in read method