Fix rows and columns