Fixed the error for invalid values of UUIDs.