sl2: Fix parsing layouts.