Fix bug with empty visibles in session