Fixing the in layout preview