Reset location on error