Sql update correction.  close #407