fix visibility refactoring error; better error message for bad notebook entry

fixes #518