fix weird duplications