Fix for the error with the unique field check using compound keys.