fixed get layout is null