fixed a duplicate data problem