Fix error in setPropertyValue