Fix LayoutPlugin compile issue