Fix opening of book and startup with invalid book