Fixed issue regarding unequal number of columns