Fixed bug that appended contract number repeatedly.