Fixed bug on property references during model creation.