add time to refresh current state. but still not a perfect solution.