fix minor duplicate bug