fixed require of windowlayout