Fixed the block so that it won't throw an error when creating a new site.