fix the bug where a custom unique function is needed, _.uniq compares the entire objects, not book.name