Fixed bugs in book reading scripts