Fix case when we create connection by ConnectionData (for example from database)