Solved bug where refresh button were incorrectly disabled