Fix number of rows in tables