fix using one layout instance