book scan function bug fixed.