fixed upload duplicate issue