Fixed compilation error in LayoutPane