Fixbug 162238: duplicate ID when using resource picker more than one time