fix setting layout file size after refactor