fix layouts swap