fix issue: cast object wrong