Switched indexes to refer to correct columns