Fix save tmp validation.