Fixed bug while trying to move unit to a building as the correct unit was not selected, and the final coordinates were not correct