Fix bug when moving a site to a number which doesn't exist.