bug fix where normal columns were classified as primary keys