Fix bug: the number of rows was wrong for some exercises