fixed error for when connections are nil