fixing mac os validation.