bug fix for init layout
bug fix for init layout