Better refreshing when an error occurs.