Fix error when refreshing
Config instead of magic numbers. (I accidentally committed part of this in the previous commit