dup bug fix