Fixing crashed layout