Fix bug that posting data doesn't trigger sampling