fixed bug about result refreshing