bug fix for connections add to tables