fixed problem with nullpointer exception on new book