fix update sample issue