fix issue with missing maxSquareSize