fixed another bug on LAYOUT