fix generate close book