bug fix

fix last image's empty pair list