Adafruit fingerprint library-sensor

adafruit library has enrol and fingerprint sketches... when ever i enrol with some id number and later check it with fingerprint sketche, it just founds the last finger tht i enrol and with id number "0"....
.
(i am using arduino UNO and SM20-fingerprint sensor with adafruit library)