Fix bug get properties from dict