multisite configuration. fixing bug when create a subsite.