Bugfixes for spanning graph and prevention of site duplicates