Better handling of attribute mismatch.