Fixed bug with table priority in prefixColumns

Fixed bug with table priority in prefixColumns