[FIX]Fixed state field and type field error.