fixes a bug with marking books as read / unread