Bug in updating layout settings