Fix to get properties correctly using name arg