Fix for key affiliation check.