Bugfix: method getDimensions was getting element n°1 of a list while there might be only 1 element n°0.