fixed docking algorithms for robots, #1732