fix error on duplicate issue