Fix bug with initproperties