fix refresh state order