Fixing layout to medium.