Fix table connection problem