fix sampling update bug