Fixed issue in getTableSpecFields, it wsa keep adding same fields again and again