attempt at fixing a book crash