Bugfix elementsPerLine count