Fixed bug with creating properties