Fix bug in plot + notebook