This line causes refreshes in unnecessary conditions