Fixing custom view layout.