deployed fix for duplicate key error