fix notebook endpoint error