fixed encoding error of update.