Bugfix when retrieving notebooks