Refresh on error

Tiny change to get repo back on track