Fixed connected agents bug

All known bugs tcl file load function are fixed.