Fixed a warning occurring because of property attribute change