notebook: bug fixes