fix update data method issue #9