Fix minor bug with docking