Bug on chain numbering fixed