fixed ipython notebook bug