fix ids
fix integer id, take min score