fix layout config