Fixed a bug in the note book system