bug fix for 7 per row.