Fixed a bug in the property class.