fix display bug in book database with missing toJson