Fix an error when a credential has less than 4 attributes