fix table creation bug ( from 4508eadbdcfac359144061802c969926838e420d)