Fixed bug with the minimum number of columns
it was being incorrectly set to 0