layout file loading fix