fix layout rendering