fix connection pattern
fix push dot out optimization
Merge pull request #1178 from pascanur/nicolasDLT_scan_bug

Fix bugs reported by the DL tutorial wrote by Nicolas