fix issues in BaseWork, Book and Text classes