Use correct index order. rows,cols not reverse

Spotted-by: berak <px1704@web.de>
GitHub: github issue #11