Fix the problem of updating type field; fix SPOT-771