fix duplicate entries