Fixed type which caused the refresh to not work when setting it
from the options.