Fix: error if no connection is defined.