handle parsing error in layout file