Fix error when book hasen't been buyed