fixed duplicated rows id's and name when selecting properties from prototype

Fixes #4155