fixed the ipython notebook