Fix bug of wrong book types and booktaking statuses in library