Fixed warnings when adding properties