fixes bug when showing books available to swap