Fixed the dispense macro so the correct number of columns are calculated