Resize fixed. The exec was counting one colomun more than the number of column present.