connected property is deprecated fix