Fixed the way that listings are associated to books. However It's slow and we should work on improving the speed by changing the temporary booklist to a hashmap using the book_id as a key