Fix the rows with the primary elements.