fix update stats after update