Fixed bug that reordered columns arbitrarily.