Corrected bug when adding new site