fix warning on comparison in DS