Bugfix in createProperty