don't set location if error