fixed problem with deleting books and callback being not a function