fix notebook parsing