Bug: fixed many bugs about user and book resources