fixed initialization of layout configuration

There is an error in the layout initialization in configure() where it assumes `layouts` is a local import, which it is not.