fixes a bug with bookshelves