Fixed bug in reconciliation logic