Fixing layout base class.