AI-512 : fixed issue with max column count (if it can't be calculated correctly fallback to DEFAULT_MAX_COLUMN_COUNT)