Fix bug in case the table visitility is determined by a modelled logic