Fix unit locations

fixed setLeft() and updateUnitLocations()