The 'connected' property is deprecated fix