Fixed too strict ID check in category model.