Fix "Add new property" function