Fixing bug in layout parser that caused incomplete generation of layout stubs