Fix height and width settings.