remove layout nil calls