fixed bug in AddSite and AddPage