Fixed a bug that gave an error when the number of columns was one