Fixing the refresh task

What it says!