bug on input duplicated
cosmetics