fix rows and ID