Fix for duplicate key entry in thoughts