Fixed the row offset on write rows